package com.niodata.dp.task.entity;

public enum PluginSysCategory {

  Basic("Basic", "通用"), Domain("Domain", "领域"), App("App", "业务"), ML("ML", "机器学习");

  private String code;
  private String name;
  private String[] funcCategories = new String[0];

  PluginSysCategory(String code, String name) {
    this.code = code;
    this.name = name;
    if (code.equals("Basic")) {
      funcCategories = new String[]{"文件传输", "数据转换", "流程控制", "其他"};
    } else if (code.equals("Domain")) {
      funcCategories = new String[]{"气象应用", "卫星应用", "GIS应用"};
    }
  }

  public String getCode() {
    return code;
  }

  public String getName() {
    return name;
  }

  public String[] getFuncCategories() {
    return funcCategories;
  }
}
